//
//  BaseViewController.m
//  liangyi
//
//  Created by 张水 on 16/12/13.
//  Copyright © 2016年 yswh. All rights reserved.
//

#import "BaseViewController.h"
#import "MineViewController.h"
//#import "MMDrawerController.h"

@interface BaseViewController ()//<UINavigationControllerDelegate,UIGestureRecognizerDelegate>

//@property(nonatomic,strong) UIGestureRecognizer *pan;

@end

@implementation BaseViewController 

-(void)viewDidLoad{
    UIBarButtonItem *Item = [[UIBarButtonItem alloc] init];
    Item.title = @"返回";
    self.navigationItem.backBarButtonItem = Item;
//    self.navigationController.interactivePopGestureRecognizer.delegate = self;
//    self.automaticallyAdjustsScrollViewInsets = NO;
}

//- (BOOL)panAction:(UIGestureRecognizer *)gestureRecognizer
//{
//    return NO;
//}

//-(void)initLeftNavItem{
//    
//    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
//    backButton.frame = CGRectMake(0, 0, 25, 25);
//    [backButton setImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
//    [backButton addTarget:self action:@selector(LeftNavItemBack:) forControlEvents:UIControlEventTouchUpInside];
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:backButton];
//}
//
//-(void)initRightNavItem{
//    
//    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
//    backButton.frame = CGRectMake(0, 0, 25, 25);
//    [backButton setImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
//    [backButton addTarget:self action:@selector(RightNavItemBack:) forControlEvents:UIControlEventTouchUpInside];
//    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:backButton];
//    
//}
//
//-(void)jumpToMainVC{
//    [[NSNotificationCenter  defaultCenter] postNotificationName:KNotificationBuildMainVC object:nil];
//}
//
//-(void)JumpTOLoginVC{
//    
//
//    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//        [[NSNotificationCenter defaultCenter] postNotificationName:KNotificationBuildLoginVC object:nil];
//    });
//
//    
//}
//
//-(void)LeftNavItemBack:(UIButton *)button{
//    
//}
//-(void)RightNavItemBack:(UIButton *)button{
//    
//}


@end
